package com.freedom.base.enums;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author freedom
 */

public enum RequestTypeEnum {
    GET(GetMapping.class),
    POST(PostMapping.class),
    DELETE(DeleteMapping.class),
    PUT(PostMapping.class),
    PATCH(PostMapping.class);

    private Class requestType;

    RequestTypeEnum ( Class requestType ) {
        this.requestType = requestType;
    }

    public Class getRequestType () {
        return requestType;
    }

    public void setRequestType ( Class requestType ) {
        this.requestType = requestType;
    }

}
